<?php
header('Content-type:text/html;charset=utf8');
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:xjh
 * Date:2016-4-26
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet"  href="<?php echo backweb_CSS_URL;?>index.css" />

</head>
<body>
	<div class="place" >
	<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="./index.php?r=backweb/nav/searchNavTop">导航管理</a></li>
			<li><a href="#">修改导航</a></li>
		</ul>
	</div>
	<table class="list_table mt10">
		<form method="post" action="./index.php?r=backweb/nav/navupd&nav_id=<?php echo $nav_info['nav_id'];?>">
			 <tr>
				 <td class="td_center wh100">导航名：</td>
				 <td>
				     <input type="text" name="nav_name" class="input-text"  value="<?php echo $nav_info['nav_name'];?>" />
				 </td>		
			  </tr>
			   <tr  class="mt25">
			  	<td class="td_center">父级菜单：</td>
				 <td>
				    <div class="select_border"> 
                        <div class="select_containers "> 
						     <select id="nav_parent" name="parent_id" class="select" onchange="isTop()">	
						       <option value="0">无</option>	
						       	<?php foreach($parent_all as $_v){ ?>
									<option value="<?php echo $_v['nav_id'];?>" <?php if($nav_info['parent_id'] == $_v['nav_id']) echo 'selected="true"';?> ><?php echo $_v['nav_name']; ?></option>
								<?php }?>
						     </select>
				   		  </div>
				     </div>
				 </td>
			  </tr>	
			  <tr>
				 <td class="td_center wh100">导航网址：</td>
				 <td>
					 <input type="text"  name="nav_url"  value="<?php echo $nav_info['nav_url'];?>" class="input-text"   />
				 </td>		
			  </tr>
			  <tr>
				 <td class="td_center wh100">排序：</td>
				 <td>
					 <input type="text" name="nav_sort"  value="<?php echo $nav_info['nav_sort'];?>" class="text sort" style="border:1px solid #ccc;width:40px;"   />
				 </td>		
			  </tr>
		  	<tr>
				<td class="td_center wh100">是否可用：</td>
				<td> 
					<input type="radio" name="active" value="1" <?php if($nav_info['active'] == 1) echo "checked='checked'";?>  />是
				    <input type="radio" name="active" value="0"  <?php if($nav_info['active'] == 0) echo "checked='checked'";?> />否
				</td>
			</tr>
			<tr>
				 <td class="td_center">
				    <input type="submit" name="send" id="btsave" value="修改" class="btn btn82 btn_save ml25" />				
				 </td>
				 <td>
				   <input type="reset" value="重置" class="btn btn82 btn_res ml10" />
				</td>
			 </tr>
			</form>
	</table>
		<div id="info" style="height:25px;margin:0 auto;">
							    <p>版权所有 © 20016-2017 xjh&lj，并保留所有权利。</p>
		</div>
</body>
</html>